#ifndef UTILS_H
#define UTILS_H

//Trimming strings to leave only digits
namespace{
void TrimStringNonDigitChars(std::vector<std::string> & lines)
{
	for(int i=0; i<lines.size(); i++)
	{

		if(lines[i].find("(digit)")!=std::string::npos) //trim only digit lines
		{

			for(int j=0; j<lines[i].length(); j++)
			{
				if(lines[i][j]<'0' || lines[i][j]>'9')
				{
					lines[i].erase(j, 1);
					j--; //lets account for that erased character
				}
			}

		}
	}

}
}

#endif //UTILS_H